import Field from 'winged/utils/wt-model-field'
import Code from '../utils/Code'
import times from '../../../Resources/utils/wt-time-utils'
export default {
	title:"服务状态变更记录",
	name:'serviceMessage',
	query: {
		method: 'DRONE',
		url: 'evaluation/consulting/get_service_compose_info',
		transfer: true,
		pagination: true,
		// 在修改的时候需要进行单条记录查询，用于获取关联麻醉记录
		getOnEdit: true,
		extraParams: ['user_id','service_compose_id',],
		tableName: 'service_compose_info',
	},
	fields: [
		 {
			label: '状态',
			type: Field.types.text,
			display: true,
			name: 'order_status',
			tableName: 'order_status',
			builder:function(data){
				data[this.tableName] =  Code.order_status(data.order_status)
			}
		},{
			label: '时间',
			type: Field.types.text,
			display: true,
			name: 'status_time',
			formSize: 'mini',
			tableName: 'status_time',
			builder:function(data){
				data[this.tableName] = times.format(	data[this.tableName])
			}
		},
	],
}